/* css reset */
* {box-sizing: border-box;}
*:before, *:after {box-sizing: border-box;}
*{margin: 0; padding: 0;}
ul, ol {list-style: none;}

/* iconfont */
.icon {
    width: 1em; height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
 }

/* style */
body {background-color: #eeeeee;}

.global-header {
    margin: 20px;
}

@media (min-width: 500px) {
    .global-header {
        margin: 100px 0 50px 0;
    }
    .search-form {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}
.search-form {
    display: flex;
    justify-content: space-between;
}
.search-form > input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    margin-right: 10px;
    border: 1px solid #dddddd;
    border-radius: 6px;
}
.search-form > button {
    white-space: nowrap;
    padding: 0 10px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    background: #0282b9;
    color: white;
    font-size: 16px;
}

.global-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.site-list {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
@media (min-width: 500px) {
    .site-list {
        margin-left: 0;
        margin-right: -25px;
        justify-content: flex-start;
    }
}
.site-list > li {
    margin-bottom: 10px;
}
@media (min-width:500px) {
    .site-list > li {
        margin-right: 25px;
    }
}
.site-list .site {
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 15px 0;
    position: relative;
    cursor: pointer;
}
.site-list .site > .logo {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 64px;
    text-transform: uppercase;
}
.site-list .site > .link {
    font-size: 14px;
    margin-top: 4px;
}
.site-list .site > .close {
    position: absolute;
    right: 10px;
    top: 5px;
    display: none;
    cursor: default;
}
@media (min-width:500px) {
    .site-list .site > .close{
        display: none;
        cursor: default;
    }
    .site-list .site:hover > .close {
        display: block;
    }
}
.site-list .add-button {
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 15px 0;
}
.site-list .add-button .icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.site-list .add-button .icon {
    width: 60px;
    height: 60px;
}
.site-list .add-button .text {
    font-size: 14px;
    margin-top: 4px;
}
